package two.dimensional.arrays;

/**
 * @author shkstart
 * @date 2022/4/16 - 22:53
 */
public class ArrayExercise {
    public static void main(String[] args) {
        int arr[][] = {{3,5,8},{12,9},{7,0,6,4}}, arraySum = 0;
        for (int i = 0; i < arr.length; i++ ) {
            for (int j = 0; j < arr[i].length; j++ ) {
                arraySum += arr[i][j];
            }
        }
        System.out.println(arraySum);
    }
}
